package org.example.cicdi.service.impl.second;

public class AuxHelper {
    public static String getWrapper(String fieldType) {
        fieldType = fieldType.toLowerCase();
        if (fieldType.indexOf("int") >= 0) {
            return "java.lang.Integer";
        } else if (fieldType.indexOf("double") >= 0) {
            return "java.lang.Double";
        } else if (fieldType.indexOf("decimal") >= 0) {
            return "java.math.BigDecimal";
        } else {
            return fieldType.indexOf("date") >= 0 ? "java.util.Date" : "java.lang.String";
        }
    }
}
